package com.clj.rocketmq_example.dal.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper=false)
@TableName("user")
public class UserEntity extends Model<UserEntity>{
	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
	
	private String username;
	
	private Integer age;
	


    /**
     * 主键值
     */
	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}
